﻿Public Class LoginForm2


    Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
        If UsernameTextBox.Text = "egen" And PasswordTextBox.Text = "scada" Then
            MessageBox.Show("مرحبا")

            Mixture.gb_1.Enabled = True
            Mixture.gb_2.Enabled = True
            Mixture.btnSaveUpdate.Enabled = True

            Me.Close()

        Else
            MessageBox.Show("البيانات خطأ")
        End If
    End Sub

    Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click
        Me.Close()
    End Sub

End Class
